package com.yohann.designPattern.strategy.duck;

import com.yohann.designPattern.strategy.fly.NoFlyBehavior;

/**
 * <p>
 * 北京鸭
 * </p>
 *
 * @author Yohann
 * @since 2021/2/13 18:23
 */
public class PekingDuck extends Duck {
    public PekingDuck() {
        behavior = new NoFlyBehavior();
    }

    @Override
    public void display() {
        System.out.println("PekingDuck");
    }

    @Override
    public void fly() {
        super.fly();
    }
}